package com.nulldev.util.web.HttpServer3.pages.js_backend.demo;

import com.nulldev.util.io.file.FileUtil;
import com.nulldev.util.web.HttpServer3.HttpServer3;
import com.nulldev.util.web.HttpServer3.SSLBehaviour;
import com.nulldev.util.web.HttpServer3.pages.js_backend.JSBackedPage;

public class JSPagesDemo {

	public static void main(String[] args) throws Exception {
		final HttpServer3 hs3 = new HttpServer3(9000, true, SSLBehaviour.DISABLED, null);
		final JSBackedPage jsbp = new JSBackedPage("/demo", FileUtil.getResourceAsString(JSPagesDemo.class, "payload.js"));
		hs3.addPage(jsbp);
	}

}
